package com.huawei.org.service;

import com.huawei.basic.service.IBaseService;
import com.huawei.org.dto.ShopDto;
import com.huawei.org.domain.Shop;
import com.huawei.org.domain.ShopAuditLog;

import javax.mail.MessagingException;
import java.util.List;

/**
 * 业务接口：员工
 */
public interface IShopService extends IBaseService<Shop> {

    /**
     * 店铺入驻
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 店铺审核驳回
     * @param log
     */
    void reject(ShopAuditLog log) throws MessagingException;

    /**
     * 店铺审核通过
     * @param log
     */
    void pass(ShopAuditLog log) throws MessagingException;

    /**
     * 获取每一个店铺状态的数量
     * @return
     */
    List<ShopDto> getShopState();

    /**
     * 店铺激活
     * @param shopId
     */
    void active(Long shopId) throws MessagingException;
}
